package com.ruoyi.bbsAdmin.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.io.Serializable;
import java.util.Date;

/**
 * 论坛用户对象 user
 *
 * @author ruoyi
 * @date 2022-03-21
 */
@TableName(value = "bbs_user")
public class bbs_user implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 唯一id
     */
    private String userid;

    /**
     * 手机号
     */
    @Excel(name = "手机号")
    private String phone;

    /**
     * 密码
     */
    private String password;

    /**
     * 邀请人
     */
    @Excel(name = "邀请人")
    private String inviter;

    /**
     * 性别
     */
    @Excel(name = "性别")
    private Integer sex;

    /**
     * 学号
     */
    private String stunum;

    /**
     * 城市
     */
    private String city;

    /**
     * 邮箱
     */
    @Excel(name = "邮箱")
    private String email;

    /**
     * 身份证照片地址，以逗号分割
     */
    @Excel(name = "身份证照片地址，以逗号分割")
    private String idcardurl;

    /**
     * 昵称
     */
    @Excel(name = "昵称")
    private String nickname;

    /**
     * 头像地址
     */
    @Excel(name = "头像地址")
    private String headimgurl;

    /**
     * 当前用户创建的板块数量，最多3个
     */
    private Integer platenum;

    /**
     * 微信统一ID
     */
    private String openid;

    /**
     * 小程序ID
     */
    private String unionid;

    /**
     * 用户类型。0：访客；1：微信登录用户；2：审核中用户；3：审核通过用户；4：预警用户；5：禁言用户；6：管理员；7：预警管理员；
     */
    @Excel(name = "用户类型。0：访客；1：微信登录用户；2：审核中用户；3：审核通过用户；4：预警用户；5：禁言用户；6：管理员；7：预警管理员；")
    private Integer usertype;

    /**
     * 用户状态。0：正常；1：预警；2：禁言；3：审核中
     */
    @Excel(name = "用户状态。0：正常；1：预警；2：禁言；3：审核中")
    private Integer userstate;

    /**
     * 上次登录的Ip
     */
    private String lastip;

    /**
     * 简介
     */
    @Excel(name = "简介")
    private String introduction;

    /**
     * 创建时间
     */
    @Excel(name = "创建时间")
    private Date createtime;

    /**
     * 更新时间
     */
    @Excel(name = "更新时间")
    private Date updatetime;

    /**
     * 上次登陆时间
     */
    @Excel(name = "上次登陆时间")
    private Date lastlogintime;

//    private Integer schoolid;

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getUserid() {
        return userid;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPhone() {
        return phone;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPassword() {
        return password;
    }

    public void setInviter(String inviter) {
        this.inviter = inviter;
    }

    public String getInviter() {
        return inviter;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getSex() {
        return sex;
    }

    public void setStunum(String stunum) {
        this.stunum = stunum;
    }

    public String getStunum() {
        return stunum;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCity() {
        return city;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getEmail() {
        return email;
    }

    public void setIdcardurl(String idcardurl) {
        this.idcardurl = idcardurl;
    }

    public String getIdcardurl() {
        return idcardurl;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getNickname() {
        return nickname;
    }

    public void setHeadimgurl(String headimgurl) {
        this.headimgurl = headimgurl;
    }

    public String getHeadimgurl() {
        return headimgurl;
    }

    public void setPlatenum(Integer platenum) {
        this.platenum = platenum;
    }

    public Integer getPlatenum() {
        return platenum;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getOpenid() {
        return openid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUsertype(Integer usertype) {
        this.usertype = usertype;
    }

    public Integer getUsertype() {
        return usertype;
    }

    public void setUserstate(Integer userstate) {
        this.userstate = userstate;
    }

    public Integer getUserstate() {
        return userstate;
    }

    public void setLastip(String lastip) {
        this.lastip = lastip;
    }

    public String getLastip() {
        return lastip;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getIntroduction() {
        return introduction;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public Date getLastlogintime() {
        return lastlogintime;
    }

    public void setLastlogintime(Date lastlogintime) {
        this.lastlogintime = lastlogintime;
    }

    //    public void setSchoolid(Integer schoolid)
//    {
//        this.schoolid = schoolid;
//    }
//
//    public Integer getSchoolid()
//    {
//        return schoolid;
//    }
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("userid", getUserid())
                .append("phone", getPhone())
                .append("password", getPassword())
                .append("sex", getSex())
                .append("stunum", getStunum())
                .append("city", getCity())
                .append("email", getEmail())
                .append("idcardurl", getIdcardurl())
                .append("nickname", getNickname())
                .append("headimgurl", getHeadimgurl())
                .append("platenum", getPlatenum())
                .append("openid", getOpenid())
                .append("unionid", getUnionid())
                .append("usertype", getUsertype())
                .append("userstate", getUserstate())
                .append("lastip", getLastip())
                .append("introduction", getIntroduction())
                .append("createtime", getCreatetime())
                .append("updatetime", getUpdatetime())
                .append("lastlogintime", getLastlogintime())
                .toString();
    }
}
